package com.gitee.swsk33.dbfeign.feignclient;

import com.gitee.swsk33.dbentity.dataobject.User;
import com.gitee.swsk33.dbentity.model.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient(name = "db-user", path = "/api/user", contextId = "user-client")
public interface UserClient {

	@GetMapping("/get/{id}")
	Result<User> getById(@PathVariable int id);

}